package com.huilan.etl.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 航司信息表
 * </p>
 *
 * @author ghy
 * @since 2018-12-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("IOT_AIRLINE_INFO_CONFIG")
public class AirlineInfoConfig extends Model<AirlineInfoConfig> {

    public static final String CLASS_NAME = "Airline";

    public static final String CLASS_LIST = "AirlineList";

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "ID", type = IdType.INPUT)
    private Long id;

    /**
     * 航司二字码
     */
    @TableField("IATA")
    private String iata;

    /**
     * 公司三字码
     */
    @TableField("ICAO")
    private String icao;

    /**
     * 航空公司logo
     */
    @TableField("AIRLINE_LOGO")
    private String airlineLogo;

    /**
     * 航司二字码
     */
    @TableField("AIRLINE_CODE")
    private String airlineCode;

    /**
     * 航司介绍
     */
    @TableField("AIRLINE_CONTENT")
    private String airlineContent;

    /**
     * 电话
     */
    @TableField("IPHONE")
    private String iphone;

    /**
     * 官网网址
     */
    @TableField("WEBSITE")
    private String website;

    /**
     * D:国内I:国际R:地区
     */
    @TableField("REGION")
    private String region;

    /**
     * 中文简称
     */
    @TableField("CN")
    private String cn;

    /**
     * 英文简称
     */
    @TableField("EN")
    private String en;

    /**
     * 中文全称
     */
    @TableField("CN_FULL")
    private String cnFull;

    /**
     * 英文全合成能
     */
    @TableField("EN_FULL")
    private String enFull;

    /**
     * 备注
     */
    @TableField("REMARK")
    private String remark;

    /**
     * 所属联盟
     */
    @TableField("UNION_")
    private String union;

    /**
     * 创建时间
     */
    @TableField("CREATE_DATE")
    private String createDate;

    /**
     * 更新成功时间
     */
    @TableField("UPDATE_DATE")
    private String updateDate;

    /**
     * 经度
     */
    @TableField("AIRLINE_LONGITUDE")
    private String airlineLongitude;

    /**
     * 纬度
     */
    @TableField("AIRLINE_LATITUDE")
    private String airlineLatitude;


    public static final String ID = "ID";

    public static final String IATA = "IATA";

    public static final String ICAO = "ICAO";

    public static final String AIRLINE_LOGO = "AIRLINE_LOGO";

    public static final String AIRLINE_CODE = "AIRLINE_CODE";

    public static final String AIRLINE_CONTENT = "AIRLINE_CONTENT";

    public static final String IPHONE = "IPHONE";

    public static final String WEBSITE = "WEBSITE";

    public static final String REGION = "REGION";

    public static final String CN = "CN";

    public static final String EN = "EN";

    public static final String CN_FULL = "CN_FULL";

    public static final String EN_FULL = "EN_FULL";

    public static final String REMARK = "REMARK";

    public static final String UNION_ = "UNION_";

    public static final String CREATE_DATE = "CREATE_DATE";

    public static final String UPDATE_DATE = "UPDATE_DATE";

    public static final String AIRLINE_LONGITUDE = "AIRLINE_LONGITUDE";

    public static final String AIRLINE_LATITUDE = "AIRLINE_LATITUDE";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
